﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfFadeSample"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:Wpf="clr-namespace:TextOutInBehavior.Wpf;assembly=TextOutInBehavior" x:Class="WpfFadeSample.MainWindow"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <TextBlock x:Name="textBlock" HorizontalAlignment="Center" Margin="10,10,13.667,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="495" Height="71" FontSize="48" TextAlignment="Center">
            <i:Interaction.Behaviors>
                <Wpf:TextOutInFadeBehavior FadeInDuration="0:0:0.7" FadeOutDuration="0:0:0.3"/>
            </i:Interaction.Behaviors>
        </TextBlock>
        <Button x:Name="button" Content="Change Text" HorizontalAlignment="Center" Margin="177,137,181.667,117.667" VerticalAlignment="Center" Width="160" Click="button_Click" Height="66"/>

    </Grid>
</Window>
